import * as React from 'react';
import * as ReactDOM from 'react-dom';
import App from './App';
import {createStore, combineReducers} from "redux";
import {componentRefreshReduce} from './reducer'
import './index.css';
import {Provider} from 'react-redux';
import registerServiceWorker from './registerServiceWorker';

const reduce = combineReducers({componentRefreshReduce});
const store = createStore(reduce, {});
ReactDOM.render(
    <Provider store={store}>
        <App />
    </Provider>,
  document.getElementById('root') as HTMLElement
);
registerServiceWorker();

//todo 测试一些功能的地方
// (function test() {
//     const d = new Date();
//     const year = d.getUTCFullYear();
//     const month = d.getUTCMonth()+1;
//     const day = d.getUTCDate()===0?7:d.getUTCDate();
//     const h = d.getUTCHours();
//     const minute = d.getUTCMinutes();
//     const s = d.getUTCSeconds();
//     const ms = d.getUTCMilliseconds();
    // const result = Date.UTC(year,month,day,h,minute,s,ms);
    // console.log('result:',result);
// })();